package thread.demo17;

public class RealData implements Data {

	private String result;

	public RealData(String param) {
		StringBuffer sb = new StringBuffer();
		sb.append(param);
		try {
			// 模拟构造真实数据的耗时操作
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		result = sb.toString();
	}

	@Override
	public String getResult() {
		return result;
	}

}
